package org.agile2soft.nexoma.core.tapestry.pages.user;

import org.agile2soft.nexoma.core.entity.User;
import org.apache.tapestry5.beaneditor.BeanModel;
import org.apache.tapestry5.ioc.Messages;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.BeanModelSource;

import br.com.arsmachina.tapestrycrud.base.BaseListPage;

@SuppressWarnings("unused")
public class ListUser extends BaseListPage<User,Integer> {

    @Inject
    private BeanModelSource beanModelSource;

    @Inject
    private Messages messages;

    @Override
    public BeanModel<User> getBeanModel() {
        BeanModel<User> beanModel = super.getBeanModel();
        beanModel.exclude("id");
        return beanModel;
    }
}
